Ext.namespace('iOS.View');

Ext.define('IconScreen', {
    extend  : 'BaseView',
    
    statics : {
        ViewCls    : 'icon-screen',
        HomeButton : 'home-button'
    },
    
    _eventList : [
        ['unlock'],
        ['hideScreen'],
        ['showScreen']
    ],
    
    iconList : {},

    addIcon: function(name, icon){
        this.iconList[name] = icon;
    },

    _initView: function(){
        this.hide();
    },
    
    unlock: function(){
        iOS.ViewManager.notify(this.self.HomeButton, 'enableIconAnim');
        iOS.ViewManager.notify(this, 'iconIn');
    },
    
    hideScreen: function(){
        this.getElCache().hide();
    },
    
    showScreen: function(){
        this.getElCache().show();
    }
});

iOS.View.IconScreen = IconScreen;
